cmake_minimum_required(VERSION 2.8)

#REPLACE ALL 'DUMMY' OCCURENCES BY YOUR PLUGIN NAME
#AND ADAPT THE CODE BELOW TO YOUR OWN NEEDS!

option( INSTALL_QMYPLUGIN_PLUGIN "Check to install qDUMMY plugin" OFF )

if (INSTALL_QMYPLUGIN_PLUGIN)

#CloudCompare 'DUMMY' plugin
project( QMYPLUGIN_PLUGIN_DLL )

find_package(PCL 1.6.0 REQUIRED)
FIND_PACKAGE( OpenCV REQUIRED )


include_directories( ${PclUtils_SOURCE_DIR}/filters
					${PclUtils_SOURCE_DIR}/utils)
include_directories( ${PclUtils_BINARY_DIR} )


#load necessary libraries (see qPCV for an example)

#add_subdirectory (RANSAC_SD_orig)

include_directories( ${dmd_SOURCE_DIR}/include
					${OpenCV_INCLUDE_DIRS}
					${PCL_INCLUDE_DIRS}
					${dmd_SOURCE_DIR}/libs/tinyxml2/include
					${dmd_SOURCE_DIR}/libs/libcitygml/include
					${MiscLib_SOURCE_DIR}
					${PrimitiveShapes_SOURCE_DIR}
					${PrimitiveShapes_SOURCE_DIR}/GfxTL)
					
link_directories(${PCL_LIBRARY_DIRS}
				${dmd_SOURCE_DIR}/libs/tinyxml2/lib
				${dmd_SOURCE_DIR}/libs/libcitygml/lib)
				
add_definitions(${PCL_DEFINITIONS})
#if the plugin is an 'OpenGL filter', uncomment the line below
#set( CC_OPENGL_FILTER ON BOOL)
include( ../CMakePluginTpl.cmake )

target_link_libraries(${PROJECT_NAME} ${PCL_LIBRARIES} ${OpenCV_LIBS} dmd PclUtils PrimitiveShapes MiscLib)

#set dependencies to necessary libraries (see qPCV for an example)
#target_link_libraries( ${PROJECT_NAME} LIB1 )
#include_directories( ${LIB1_INCLUDE_DIR} )

endif()
